package com.zrar.ak.gkpt.dao;

import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidBO;
import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidEquipmentBO;
import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidPeripheralBO;
import com.zrar.ak.gkpt.model.bo.BusinessSchemePeripheralInfoBO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
/**
 * @ClassName: IBusinessBidPurchaseBidPeripheralDao
 * @Description 招标采购-外设表Dao层
 * @Author HuangKeXin
 * @Time 2020/04/10
 */
@Repository("businessBidPurchaseBidPeripheralDao")
public interface IBusinessBidPurchaseBidPeripheralDao  extends Mapper<BusinessBidPurchaseBidPeripheralBO> {

       int deleteById(String id);





        int insertInfo(List<BusinessBidPurchaseBidPeripheralBO> peripheralInfoBOList);

        int updateInfo(List<BusinessBidPurchaseBidPeripheralBO> peripheralList);

    int queryByType(Map map);

    List<BusinessBidPurchaseBidPeripheralBO> queryAllByBasicsId(String basicsId);


//@Select(("SELECT COUNT(1) AS TOTAL FROM BUSINESS_BID_PURCHASE_PERIPHERAL WHERE IS_DELETE='0' AND UNIT_ID=#{unitId}"))
//Integer queryExistCountByBusinessBidPeripheralUnitId(String unitId);
//
//    @Update(" UPDATE BUSINESS_BID_PURCHASE_PERIPHERAL SET IS_DELETE='1' WHERE IS_DELETE='0' AND UNIT_ID = #{unitId}")
//    void deleteBusinessBidPeripheralByUnitId(String unitId);


    }